package com.xin.springcloudconsumer.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
   ftl的映射路径
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/common/msg_success").setViewName("/common/msg_success");
        registry.addViewController("/common/msg_error").setViewName("/common/msg_error");
    }
}
